package com.gladlee.timeServer;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;

import com.gladlee.ACP.tool.AtomTool;

public class TimeServerTool extends AtomTool {

	
	public static int readSendPeriod(File file) throws DocumentException{
		int r=3000;
		SAXReader reader=new SAXReader();
		Document doc=reader.read(file);
		Node periodNode=doc.selectSingleNode("//sendPeriod");
		String s_sendPeriod=periodNode.getText();
		r=Integer.valueOf(s_sendPeriod);
		return r;
	}
	public static List<String> readIPs(File file){
		List<String> list=new ArrayList<String>();
		
		return list;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
